#siegeField {
  --field-gold: #e2c48a;
  --field-edge: #5c5742;
  width: min(1260px,calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 40px;
  color: #f5ecd9;
  font-family: var(--sans);
}
#siegeField button { font: 600 14px/1.3 var(--sans); color: #f5e8cc; }
#siegeField button:disabled { opacity: .5; }
#siegeField .sf-header { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 15px; }
.sf-header h1 { margin: 5px 0 0; font: 700 clamp(24px,3.5vw,44px)/1.2 var(--display); letter-spacing: -.045em; }
.sf-context { margin: 0; display: flex; align-items: center; gap: 9px; color: #e9c78b; font-size: 14px; }
.sf-context span + span { border-left: 1px solid #6a644b; padding-left: 9px; color: #bfc0aa; }
.sf-stats { display: flex; gap: clamp(8px,2.5vw,24px); }
.sf-stats div { min-width: 52px; border-left: 1px solid #555843; padding-left: 11px; }
.sf-stats small, .sf-stats strong { display: block; }
.sf-stats small { color: #c4c6b4; font-size: 12px; }
.sf-stats strong { color: #f5db9d; font: 700 clamp(16px,1.5vw,22px)/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.sf-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(230px,28%); gap: 16px; align-items: start; }
.sf-stage, .sf-panel { min-width: 0; }
.sf-frame { overflow: auto; background: #424831; border: 2px solid #aa8b54; box-shadow: 0 7px 20px #09100961; }
.sf-map-inner { position: relative; min-width: 100%; width: 100%; aspect-ratio: 23/15; isolation: isolate; }
.sf-map-inner canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; }
#fieldMap { position: absolute; inset: 0; z-index: 1; }
#siegeField[data-phase="prep"] #fieldMap { cursor: crosshair; }
#fieldMap:focus-visible { outline-offset: -4px; }
.sf-frame.sf-large .sf-map-inner { width: max(130%,690px); }
.sf-fieldbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 34px; padding: 1px 1px 4px; }
#fieldPhase { color: #e9cf99; font: 700 15px/1.3 var(--display); }
#fieldSignal { margin-left: 9px; color: #ffc680; font-weight: 700; font-size: 12px; }
#fieldRangeKey { margin-left: 10px; color: #dbcd9d; font-size: 12px; }
#fieldRangeKey::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 4px; background: #d7b171; border: 1px solid #f5d89c; }
#siegeField .sf-quiet { border: 1px solid #625d4b; background: #282e26; padding: 6px 10px; }
.sf-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0 5px; }
#siegeField .sf-controls button { min-height: 43px; padding: 8px 16px; border-radius: 2px; }
#siegeField .sf-primary { background: linear-gradient(#ab5236,#87402d); border: 1px solid #d18859; box-shadow: inset 0 1px #d17d53; }
#siegeField .sf-primary:enabled:hover { background: #ae593a; }
#fieldBack { margin-left: auto; }
.sf-message { margin: 5px 1px; color: #d9d4be; font-size: 13px; min-height: 1.45em; }
.sf-summary:not([hidden]) { margin-top: 10px; padding: 11px 14px; background: #30362a; border-left: 3px solid #d4ae71; }
.sf-summary strong, .sf-summary span { display: block; }
.sf-summary strong { color: #f1cf8b; font: 700 19px/1.35 var(--display); }
.sf-summary span { color: #dfdac4; font-size: 13px; margin-top: 4px; }
.sf-panel { margin-top: 33px; padding: clamp(12px,1.5vw,20px); border: 1px solid var(--field-edge); border-top: 2px solid #bca06a; background: linear-gradient(125deg,#30372c,#23291f); }
.sf-panel h2 { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 9px; font: 700 19px/1.4 var(--display); color: #f2e1bd; }
.sf-panel h2 small { font: 500 12px/1.3 var(--sans); color: #d0c3a1; }
.sf-force { margin: 0 0 16px; display: grid;grid-template-columns: repeat(auto-fit,minmax(105px,1fr)); gap: 4px; }
#siegeField .sf-enemy { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 3px; min-height: 37px; padding: 2px 5px; color: #e1d9c3; background: #282d23; border: 1px solid #514c3d; text-align: left; font: 600 12px/1.2 var(--sans); }
.sf-enemy img { width: 28px; height: 29px; image-rendering: pixelated; object-fit: contain; }
.sf-enemy b { color: #d3b48c; font-size: 11px; font-variant-numeric: tabular-nums; }
.sf-enemy small { display:block; margin-top:2px; color:#dbc89e; font:400 10px/1.25 var(--sans); }
#siegeField .sf-enemy[aria-pressed="true"] { border-color: #cf9a64; background: #44362c; }
.sf-enemy-info { font-size: 13px; line-height: 1.5; color: #eed1ab; margin: -8px 0 16px; }
.sf-boss-hud:not([hidden]) { display: flex; align-items: center; gap: 10px; margin: 1px 0 8px; padding: 5px 11px 5px 6px; border: 1px solid #986942; border-left: 3px solid #d78d4f; background: linear-gradient(105deg,#472e25,#302b22 66%); }
.sf-boss-hud img { width: 54px; height: 53px; flex: 0 0 auto; object-fit: contain; image-rendering: pixelated; }
.sf-boss-body { flex: 1; min-width: 0; }
.sf-boss-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 8px; }
.sf-boss-title strong { color:#ffe0a2; font: 700 17px/1.25 var(--display); }
.sf-boss-title span { color:#e9b480; font-size: 13px; }
.sf-boss-title b { margin-left:auto; color:#f9dab2; font: 600 12px/1.3 var(--sans); font-variant-numeric: tabular-nums; }
.sf-boss-hud progress:not([hidden]) { display: block; width: 100%; height: 7px; margin: 4px 0; border: 1px solid #976c45; border-radius: 0; background: #28221d; appearance:none; }
.sf-boss-hud progress::-webkit-progress-bar { background:#28221d; }
.sf-boss-hud progress::-webkit-progress-value { background:linear-gradient(90deg,#b84b34,#f2b66c); }
.sf-boss-hud progress::-moz-progress-bar { background:linear-gradient(90deg,#b84b34,#f2b66c); }
.sf-boss-hud p { margin: 0; color:#d6c7b4; font: 400 12px/1.35 var(--sans); }
.sf-roster { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; max-height: min(37vh,330px); overflow-y: auto; scrollbar-color: #817552 #24291f; }
#siegeField .sf-unit { min-width: 0; display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 2px 4px; border: 1px solid #505443; background: #252c23; font-size: 12px; text-align: left; }
.sf-unit img { flex: 0 0 auto; width: 32px; height: 35px; object-fit: contain; image-rendering: pixelated; }
.sf-unit span { min-width: 0; font-weight: 700; }
.sf-unit small { display: block; color: #c4c5af; font: 400 10px/1.3 var(--sans); }
#siegeField .sf-unit[aria-pressed="true"] { background: #463e2e; border-color: #d4b275; }
.sf-card { padding-top: 11px; margin-top: 11px; border-top: 1px solid #585a47; }
.sf-card h3 { font: 700 18px/1.4 var(--display); margin: 0; color: #f9dea3; }
.sf-card p { margin: 3px 0 0; color: #d1d3bf; font-size: 13px; }
.sf-unit-actions { display: flex; gap: 6px; margin-top: 8px; }
#siegeField .sf-unit-actions button { font-size: 12px; }
@media(max-width:860px) {
  #siegeField { width: calc(100% - 22px); padding-top: 14px; }
  .sf-layout { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .sf-panel { margin: 0; }
  .sf-roster { grid-template-columns: repeat(auto-fit,minmax(94px,1fr)); max-height: 185px; }
  .sf-force { margin-bottom: 12px; }
}
@media(max-width:560px) {
  #siegeField { width: calc(100% - 14px); padding-top: 8px; }
  #siegeField .sf-header { display: block; margin-bottom: 3px; }
  .sf-header h1 { font-size: 23px; margin: 3px 0 7px; }
  .sf-context { font-size: 12px; }
  .sf-stats { gap: 9px; padding: 5px 0; border-block: 1px solid #4b503e; }
  .sf-stats div { min-width: 0; flex: 1; padding-left: 6px; }
  .sf-stats div:first-child { padding-left: 0; border: 0; }
  .sf-stats small { font-size: 10px; }
  .sf-stats strong { font-size: 15px; line-height: 1.15; }
  .sf-fieldbar { min-height: 35px; }
  #siegeField .sf-quiet { font-size: 12px; padding: 5px 8px; }
  .sf-controls { margin-top: 8px; gap: 5px; }
  #siegeField .sf-controls button { padding: 6px 10px; min-height: 39px; }
  .sf-message { font-size: 12px; }
  .sf-panel { padding: 10px; }
  .sf-panel h2 { font-size: 16px; }
  .sf-boss-hud:not([hidden]) { gap: 7px; padding-right: 7px; margin-bottom: 5px; }
  .sf-boss-hud img { width:45px; height:45px; }
  .sf-boss-title strong { font-size:16px; }
  #siegeField .sf-enemy { min-height: 42px; }
}
